//
//  InstantFeedbackController.h
//  ActiveDeck
//
//  Created by Michael Cohen on 9/2/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AD_Page.h"
#import "AD_Grade.h"

@protocol SubWindowDelegate <NSObject>
@required
- (void) windowClosed;
- (void) showNextPage;
@end


@interface InstantFeedbackController : UIViewController {
    id<SubWindowDelegate> delegate;
    UILabel *correctLabel, *feedbackLabel, *numCorrectLabel, *numIncorrectLabel;
    UIButton *nextButton, *okButton;
    
    NSString *submittedAnswer;
    BOOL hasNextPage;
    NSMutableDictionary *submittedWordCategories;
    
    AD_Page *page;
    
    int numberCorrect, numberIncorrect;
}

@property (nonatomic, retain) IBOutlet UILabel *correctLabel, *feedbackLabel, *numCorrectLabel, *numIncorrectLabel;
@property (nonatomic, retain) IBOutlet UIButton *nextButton, *okButton;
@property (nonatomic, retain) NSString *submittedAnswer;
@property (nonatomic, retain) NSMutableDictionary *submittedWordCategories;
@property (retain) id delegate;
@property (nonatomic, retain) AD_Page *page;
@property (readwrite) BOOL hasNextPage;
@property (readwrite) int numberCorrect;
@property (readwrite) int numberIncorrect;

-(void)loadInstantFeedback;
-(IBAction)closeFeedback:(id)sender;
-(IBAction)goToNextPage:(id)sender;
@end
